<!-- $Id: uploadFile.html 33 2011-02-17 06:36:02Z nicholasinlove1986@gmail.com $ -->
<include file="Public:pageheader"/>
<link href="__PUBLIC__/Css/uploadify.css" rel="stylesheet" type="text/css" />
<load href="__PUBLIC__/Uploadify/swfobject.js" />
<load href="__PUBLIC__/Uploadify/jquery.uploadify.v2.1.4.min.js" />
<script language="javascript">

/**
* jQuery
*/
$(function(){
	 
	$('#uploadfile').uploadify({
		'uploader'       : '__PUBLIC__/Uploadify/uploadify.swf',
		'script'         : '__APP__/Upload/fileUpload',
		'cancelImg'      : '__PUBLIC__/Uploadify/cancel.png',
		'multi'          : true,
		'auto'           : false,
		'fileExt'        : '*.doc;*.pdf;*.rar;*.zip',
		'fileDesc'       : '请选择doc,pdf,rar,zip文件',
		'queueID'        : 'fileQueue',
		'queueSizeLimit' : 5,
		'simUploadLimit' : 5,
		'sizeLimit'      : {$allow_max_size_b}, 
		'onSelectOnce'   : function(event,data) {
			$('#status-message').text(data.filesSelected + ' files have been added to the queue.');
		},	
		'onComplete'     : function(event,queueID,fileObj,response,data){
			var html="<li>"+fileObj.name+"&nbsp;-&nbsp;-&nbsp;-&nbsp;-&nbsp;<a href='__APP__/Upload/uploadManager/'>[上传成功]</a></li>";		
			$('#filelist').append(html);
		},
		'onAllComplete'  : function(event,data) {
			 $('#status-message').text(data.filesUploaded + ' files uploaded, ' + data.errors + ' errors.');
		}
	});
	  
});

</script>
<div class="main-div">
<form action="" method="post" name="theForm" enctype="multipart/form-data">
<table width="100%">
  <tr>
    <td>
      <div style="font-weight:bold;"><img src="__PUBLIC__/Images/notice.gif" width="16" height="16" border="0" /> 有关附件上传</div>
       <ul>
		 <li>手动粘贴样例: &lt;span class=download&gt;&lt;a href="http://www.yurnero.net/data/uploads/test.rar" target=_blank&gt;[点击下载]&lt;/a&gt;&lt;/span&gt;</li>
		 <li>文件名不能为中文,否则管理文件的时候会乱码</li>	
		 <li>防盗链功能未完成,安全下载可以统计下载次数</li>
		 <li>文件允许类型: doc pdf rar zip</li>	
		 <li>最大文件允许: {$allow_max_size}</li>		 	
       </ul>
    </td>
  </tr>
  <tr>
     <td style=" padding:5px; margin:5px; padding-left:50px;">
		    <div id="status-message"></div>
            <div id="fileQueue"></div></td>
        </tr>
        <tr>
          <td style=" padding:5px; margin:5px; padding-left:50px;"><input type="file" name="uploadfile" id="uploadfile"></td>
        </tr>
        <tr>
          <td style=" padding:5px; margin:5px; padding-left:50px;"><a href="javascript:$('#uploadfile').uploadifyUpload();">[上传文件]</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="javascript:$('#uploadfile').uploadifyClearQueue();">[清除队列]</a>
</td>
        </tr>
		<tr>
          <td style=" padding:5px; margin:5px; padding-left:50px;"><ul id="filelist"></ul></td>
        </tr>
  </tr>
</table>
</form>
</div>
<include file="Public:pagefooter"/> 